/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/26/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define PhieuBanHangResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class PhieuBanHangResult
    {
        #region fields
        private Int64 maPhieuBanHang;
        private DateTime ngayBan;
        private string nguoiBan;
        private double tongGiaTien;
        private int maKho;
        private string tenKho;
        private int maKhachHang;
        private string nguoiLapPhieu;
        private DateTime ngayLapPhieu;
        private bool isVAT;
        private double vAT;
        private Boolean isCommit;
        private string maSoPhieu;
        
        #endregion fields

        #region properties
        /// <summary>
        /// Define MaPhieuBanHang Property.
        /// </summary>
        public Int64 MaPhieuBanHang
        {
            get { return this.maPhieuBanHang; }
            set { this.maPhieuBanHang = value; }
        }
        /// <summary>
        /// Define NgayBan Property.
        /// </summary>
        public DateTime NgayBan
        {
            get { return this.ngayBan; }
            set { this.ngayBan = value; }
        }
        /// <summary>
        /// Define NguoiBan Property.
        /// </summary>
        public string NguoiBan
        {
            get { return this.nguoiBan; }
            set { this.nguoiBan = value; }
        }
        public string TenKho
        {
            get { return this.tenKho; }
            set { this.tenKho = value; }
        }
        /// <summary>
        /// Define TongGiaTien Property.
        /// </summary>
        public double TongGiaTien
        {
            get { return this.tongGiaTien; }
            set { this.tongGiaTien = value; }
        }
        /// <summary>
        /// Define MaKho Property.
        /// </summary>
        public int MaKho
        {
            get { return this.maKho; }
            set { this.maKho = value; }
        }
        /// <summary>
        /// Define MaKhachHang Property.
        /// </summary>
        public int MaKhachHang
        {
            get { return this.maKhachHang; }
            set { this.maKhachHang = value; }
        }
        /// <summary>
        /// Define NguoiLapPhieu Property.
        /// </summary>
        public string NguoiLapPhieu
        {
            get { return this.nguoiLapPhieu; }
            set { this.nguoiLapPhieu = value; }
        }
        /// <summary>
        /// Define NgayLapPhieu Property.
        /// </summary>
        public DateTime NgayLapPhieu
        {
            get { return this.ngayLapPhieu; }
            set { this.ngayLapPhieu = value; }
        }
        public string MaSoPhieu
        {
            get { return this.maSoPhieu; }
            set { this.maSoPhieu = value; }
        }
        public Boolean IsCommit
        {
            get { return this.isCommit; }
            set { this.isCommit = value; }
        }
        public Boolean IsVAT
        {
            get { return this.isVAT; }
            set { this.isVAT = value; }
        }
        public double VAT
        {
            get { return this.vAT; }
            set { this.vAT = value; }
        }
       
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for PhieuBanHangResultResult Object.
        /// </summary>
        public PhieuBanHangResult()
        {
            this.maPhieuBanHang = Int64.MinValue;
            this.ngayBan = DateTime.MinValue;
            this.nguoiBan = string.Empty;
            this.tongGiaTien = double.MinValue;
            this.maKho = int.MinValue;
            this.maKhachHang = int.MinValue;
            this.nguoiLapPhieu = string.Empty;
            this.ngayLapPhieu = DateTime.MinValue;
            this.tenKho = string.Empty;
            this.maSoPhieu = string.Empty;
            isCommit = true;
            isVAT = false;
            vAT = 0;
        }

        #endregion constructor
    }
}